﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement._04.OBJECT;
using HotelManagement._03.DAO;

namespace HotelManagement._02.BUS
{
    class TimeBUS
    {
        TimeDAO m_TimeDAO = new TimeDAO();
        public DataTable ViewTime()
        {
            return m_TimeDAO.ViewTime("pr_tblTime_SelectAll");
        }
        public bool DeleteTime(Time ip_Time)
        {
            return m_TimeDAO.DeleteTime(ip_Time, "pr_tblTime_DeleteRow");
        }
        public bool AddTime(Time ip_Time)
        {
            return m_TimeDAO.AddTime(ip_Time, "pr_tblTime_Insert");
        }
        public DataTable Search(string ip_Keyword)
        {
            return m_TimeDAO.Search(ip_Keyword, "pr_tblTime_Search");
        }
    }
}